﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_user_token")]
    public partial class ZmUserToken : Repository.IEntity
    {
        [Key]
        [Column("id")]
        [StringLength(50)]
        public string Id { get; set; }
        [Required]
        [Column("user_id")]
        [StringLength(50)]
        public string UserId { get; set; }
        [Required]
        [Column("token")]
        [StringLength(500)]
        public string Token { get; set; }
        [Column("is_delete")]
        public short? IsDelete { get; set; }
        [Column("delete_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? DeleteOn { get; set; }
        [Column("create_on", TypeName = "timestamp(6) without time zone")]
        public DateTime CreateOn { get; set; }
        [Column("modified_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? ModifiedOn { get; set; }
        [Column("expire_time", TypeName = "timestamp(6) without time zone")]
        public DateTime? ExpireTime { get; set; }
        [Column("login_ip")]
        [StringLength(20)]
        public string LoginIp { get; set; }
        [Required]
        [Column("login_type")]
        [StringLength(36)]
        public string LoginType { get; set; }
    }
}
